import Mock from 'mockjs'

let data=[{id: 1, img: "http://dummyimage.com/100", title: "板栗仁", price: 53, check: true, count: 1},
{id: 2, img: "http://dummyimage.com/100", title: "核桃仁", price: 58, check: true, count: 1},
 {id: 3, img: "http://dummyimage.com/100", title: "巴旦木仁", price: 82, check: true, count: 1},
 {id: 4, img: "http://dummyimage.com/100", title: "开心果仁", price: 87, check: true, count: 1},
 {id: 5, img: "http://dummyimage.com/100", title: "坚果仁", price: 73, check: true, count: 1},
 {id: 6, img: "http://dummyimage.com/100", title: "特仑苏", price: 65, check: true, count: 1},
 {id: 7, img: "http://dummyimage.com/100", title: "菲利罗", price: 67, check: true, count: 1}]

Mock.mock('/getList',{
   data
   // 随机数据
   // "list|5-7":[
   //    {
   //       "id|+1":1,
   //       img:"@image(100)",
   //       title:"@ctitle",
   //       "price|50-100":50,
   //       "check|0-1":0,
   //       count:1
   //    }
   // ]
})